class chk_result(object):
    def __init__(self):
        self.app_package = ''
        self.ad_node = []
        self.fraud_type = 6
        self.fraud_name_mapping = {1: 'hidden or overlap ad', 2: 'interactive ad', 3: 'no click exit',
                                   4: 'ad out of app', 5: 'frequent ad', 6: 'no content ad'}
        self.result_detail = {}
        for i in range(1, self.fraud_type + 1):
            self.result_detail[i] = []

    def write2txt(self):
        pass

    def write2excel(self):
        pass

    def set_result(self, type_n, node_list):
        self.result_detail[type_n] = node_list

    def to_string(self):
        print(self.app_package)
        #print(self.ad_node)
        for type, re in self.result_detail.items():
            print(type, re)
